package com.spooky.sync.persistence.entity;

public class Note extends BaseEntity {
	public static final int MAX_TITLE_LENGTH = 12;
	private static Note mEditorNote = null;
	// public static final int MAX_TEXT_LENGTH = 12;
	private String mTitle;
	private String mText;
	private Category mCategory;

	public static Note getEditorInstance() {
		if (mEditorNote == null) {
			mEditorNote = new Note();
		}
		return mEditorNote;
	}

	public static void clearEditorInstance() {
		mEditorNote = null;
	}

	public Note() {
	}

	public String getTitle() {
		return mTitle;
	}

	public void setTitle(String title) {
		mTitle = title;
	}

	public String getText() {
		return mText;
	}

	public void setText(String text) {
		mText = text;
	}

	public void setCategory(Category category) {
		mCategory = category;
	}

	public Category getCategory() {
		return mCategory;
	}

	@Override
	public String toString() {
		return super.toString() + "Note [mTitle=" + mTitle + ", mText=" + mText + "\n, mCategory=" + mCategory + "]\n";
	}
}
